WorkflowEnded<'Result>Type

PackageFCQRS.Workflows
How one element's workflow ended, as `WorkflowFlow.Run` emits it to C#.

Specification

Kind
Type
Members
7
Examples
0
``.ctor``Signature
WorkflowEnded(id, outcome)
IsCancelledSignature
this.IsCancelled
IsFinishedSignature
this.IsFinished
ResultSignature
this.Result
IsFaultedSignature
this.IsFaulted

Summary

NameSignatureSynopsis
``.ctor``WorkflowEnded(id, outcome)No description available.
IsCancelledthis.IsCancelledTrue when the workflow was cancelled.
IsFinishedthis.IsFinishedTrue when the body returned a value.
Resultthis.ResultThe body's return value when `IsFinished` is true, and the type's default otherwise.
IsFaultedthis.IsFaultedTrue when the body threw an exception it did not handle.
Idthis.IdThe workflow ID computed from the element.
Errorthis.ErrorThe stored failure when `IsFaulted` is true, and null otherwise.

``.ctor``

WorkflowEnded(id, outcome)
Member

Parameters

NameTypeDescription
idstring
outcomeWorkflowOutcome<'Result>

Returns

WorkflowEnded<'Result>

IsCancelled

this.IsCancelled
Member
True when the workflow was cancelled.

Returns

bool

IsFinished

this.IsFinished
Member
True when the body returned a value.

Returns

bool

Result

this.Result
Member
The body's return value when `IsFinished` is true, and the type's default otherwise.

Returns

'Result

IsFaulted

this.IsFaulted
Member
True when the body threw an exception it did not handle.

Returns

bool

Id

this.Id
Member
The workflow ID computed from the element.

Returns

string

Error

this.Error
Member
The stored failure when `IsFaulted` is true, and null otherwise.

Returns

StepError